package com.yy.poly_.polyparameter_;

/**
 * chapter08  com.yy.poly_.polyparameter_
 * 2023-04-22 12:15
 *
 * @author yy yuyue
 * description : 不可描述
 * @date 2023/4/22 12:15
 */
public class Employee {
    private String name;
    private double salary;

    public Employee(String name, double salary){
        this.name = name;
        this.salary =salary;
    }
    //得到年工资的方法
    public  double getAnnual(){
        return 12 * salary;
    }

    public String getName() {
        return name;
    }
}
